#!/bin/bash
source /opt/ros/humble/setup.bash

JOBS=$(nproc)

colcon --log-level info \
    build \
    --packages-select sync_async_node_example_cpp \
    --symlink-install \
    --parallel-workers ${JOBS} \
    --cmake-args -DCMAKE_BUILD_TYPE=Debug


export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
export RMW_FASTRTPS_USE_QOS_FROM_XML=1
export FASTRTPS_DEFAULT_PROFILES_FILE=/mnt/sda/DATA/code/ros/ROSDemo/Humble/sync_async_node_example_cpp/config/SyncAsync.xml

# source install/setup.bash
# ros2 run sync_async_node_example_cpp SyncAsyncWriter

# ros2 run sync_async_node_example_cpp SyncAsyncReader